/*        Script by hscripts.com copyright of HIOX INDIA Free javascripts @ http://www.hscripts.com */

Array.prototype.removeDuplicate = function()
{
   // Here we remove duplicate values from first array
   var array4 = new Array;
   for(var i=0; i<this.length; i++)
   {
         var xx = true;
      for(var j=i+1; j<this.length; j++)
      {
         if(this[i] == this[j])
            xx = false;
      }
      if(xx == true)
         array4.push(this[i]);
   }
   return array4;
}
<!-- Script by hscripts.com -->